import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import index from '@/components/index'
import passwordList from '@/components/passwordList/passwordList'
import serviceList from '@/components/serviceList/serviceList'
import serviceListByHouseNumber from '@/components/serviceList/serviceListByHouseNumber'
import updateServiceDiary from '@/components/serviceList/updateServiceDiary'
import uploadImage from '@/components/serviceList/uploadImage'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/passwordList',
      name: 'passwordList',
      component: passwordList
    },
    {
      path: '/serviceList',
      name: 'serviceList',
      component: serviceList
    },
    {
      path: '/serviceListByHouseNumber',
      name: 'serviceListByHouseNumber',
      component: serviceListByHouseNumber
    },
    {
      path: '/updateServiceDiary',
      name: 'updateServiceDiary',
      component: updateServiceDiary
    },
    {
      path: '/uploadImage',
      name: 'uploadImage',
      component: uploadImage
    }
  ]
})
